#!/usr/bin/env python
# encoding: utf-8
"""
@summary: 查找具体某个用户;1404231252416101 1311261351418347 1309111703271832 1403302204025913
@author: hongxingfan
@since: 2014年8月14日    下午4:26:52
"""
import sys

if __name__ == "__main__":
    
#     suv_list = ["002EC399CA0FB701306D25509366B441"]
    suv_list = ["1404231252416101", "1311261351418347", "1309111703271832"]
    
    for line in sys.stdin:
        line = line.strip()
        cols = line.split("\t")
        
        suv = cols[3]
        if suv not in suv_list:
            continue
        
        url = cols[5]
        if "wmh-auto-tab" in url:
            continue
        domain = cols[4]
        
        print("%s\t%s" % (suv, domain + url))
